TARGETNAME	= client

SOURCES		= client.c dnsclient.c sock_utils.c

OBJS		= $(SOURCES:.c=.o)

CFLAGS          = -g -Wall -D_GNU_SOURCE -DDEBUG
#CFLAGS          = -g -Wall -D_GNU_SOURCE

INCLUDES        = -I.
LDFLAGS         = -L.
LIBS		= 

all: $(TARGETNAME)

clean:
		rm -f $(OBJS) $(TARGETNAME) 

$(TARGETNAME): $(OBJS)
		$(CC) $(LDFLAGS) -o $(TARGETNAME) $(OBJS) $(LIBS)

.c:
		$(CC) $(CFLAGS) $(INCLUDES) -c $<
